﻿<!--
  
   DurationEditor.xaml
  
   Copyright (c) 2007 Mike Strobel
  
   This source code is subject to the terms of the Microsoft Reciprocal License (Ms-RL).
   For details, see <http://www.opensource.org/licenses/ms-rl.html>.
  
   All other rights reserved.
  
  -->
<UserControl x:Class="Supremacy.Client.DurationEditor"
             xmlns="http://schemas.microsoft.com/netfx/2007/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:s="http://schemas.startreksupremacy.com/xaml/core">
  <StackPanel Orientation="Vertical">
    <RadioButton x:Name="ImmediateButton"
                 GroupName="DurationRadioGroup"
                 Height="{Binding ElementName=CustomButton, Path=ActualHeight}"
                 HorizontalContentAlignment="Left"
                 VerticalContentAlignment="Center"
                 Checked="ImmediateButton_Checked">
      <AccessText Text="{s:StringResource STIPULATION_EDITOR_DURATION_IMMEDIATE}" />
    </RadioButton>
    <RadioButton x:Name="IndefiniteButton"
                 GroupName="DurationRadioGroup"
                 Height="{Binding ElementName=CustomButton, Path=ActualHeight}"
                 HorizontalContentAlignment="Left"
                 VerticalContentAlignment="Center"
                 Checked="IndefiniteButton_Checked">
      <AccessText Text="{s:StringResource STIPULATION_EDITOR_DURATION_INDEFINITE}" />
    </RadioButton>
    <RadioButton x:Name="CustomButton"
                 GroupName="DurationRadioGroup"
                 HorizontalContentAlignment="Left"
                 VerticalContentAlignment="Center"
                 Checked="CustomButton_Checked">
      <StackPanel Orientation="Horizontal">
        <AccessText Text="{s:StringResource STIPULATION_EDITOR_DURATION_CUSTOM_1}"
                    VerticalAlignment="Center" />
        <ComboBox x:Name="CustomDurationList"
                  SelectedIndex="0"
                  SelectionChanged="CustomDurationList_SelectionChanged"
                  MinWidth="64"
                  Margin="6,0,6,0" />
        <AccessText Text="{s:StringResource STIPULATION_EDITOR_DURATION_CUSTOM_2}"
                    VerticalAlignment="Center" />
      </StackPanel>
    </RadioButton>
  </StackPanel>
</UserControl>